package com.ghovos.usermangerpgdemo.service.impl;

import com.ghovos.usermangerpgdemo.service.AuthService;
import lombok.AllArgsConstructor;
import org.springframework.http.ResponseEntity;
import org.springframework.stereotype.Service;
import org.springframework.web.client.RestTemplate;

/**
 * @author liulingfeng6
 */
@Service
@AllArgsConstructor
public class AuthServiceImpl implements AuthService {
    private RestTemplate restTemplate;

    @Override
    public ResponseEntity<String> getAuthPath() {
        ResponseEntity<String> forEntity = restTemplate.getForEntity("http://localhost:8081/kafka/topic", String.class);
        return forEntity;
    }
}
